import request from '../req'
// interface occupation {
//     id: number,
//     stataus: number, //0:待审核 1:已通过 2:驳回
//     occupationIds: string, //格式:"[1,2,3,4]"
// }

// interface occupationRecord {
//     periodServeCompanyId: number,
//     isDelete?: number
// }

// 新工种审核
export const updateOccupationStatus = async (data: any) => {
    let res = await request.put('/rest/period-insur/serve-company-occupation/update-status', data)
    return res
}

// 申请工种记录列表
export const getOccupationList = async (data: any) => {
    let res = await request.get('/rest/period-insur/serve-company-occupation/list', {
        params: data
    })
    return res
}

// 删除可用工种
export const removeOccupation = async (data: any) => {
    let res = await request.put('/period-insur/serve-company/remove-svc-occ', data)
    return res
}

// 删除可用工种
export const removeOccupationFile = async (data: any) => {
    let res = await request.put('/period-insur/serve-company/remove-svc-file', data)
    return res
}


